﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Monitor
{
    [SugarTable("AuditLog")]
    public class AuditLog : BaseEntity<long>
    {
        /// <summary>
        /// 区域
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "区域")]
        public string Area { get; set; }
        /// <summary>
        /// 控制器
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "控制器")]
        public string Controller { get; set; }
        /// <summary>
        /// 方法
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "方法")]
        public string Action { get; set; }
        /// <summary>
        /// 请求方式
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "请求方式")]
        public string Method { get; set; }
        /// <summary>
        /// /描述
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "描述")]
        public string Description { get; set; }
        /// <summary>
        /// 请求url
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "请求url")]
        public string RequestUrl { get; set; }
        /// <summary>
        /// 请求参数
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob", IsNullable = true, ColumnDescription = "请求参数")]
        public string RequestParameters { get; set; }
        /// <summary>
        /// 请求IP
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "请求IP")]
        public string RequestIp { get; set; }
        /// <summary>
        /// IP所属真实地址
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "IP所属真实地址")]
        public string IpAddress { get; set; }
        /// <summary>
        /// 操作系统
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "操作系统")]
        public string OperatingSystem { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "设备类型")]
        public string DeviceType { get; set; }
        /// <summary>
        /// 浏览器名称
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "浏览器名称")]
        public string BrowserName { get; set; }
        /// <summary>
        /// 浏览器版本
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "浏览器版本")]
        public string Version { get; set; }
        /// <summary>
        /// 响应数据
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob", IsNullable = true, ColumnDescription = "响应数据")]
        public string ResponseData { get; set; }
        /// <summary>
        /// 执行耗时(毫秒)
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "执行耗时(毫秒)")]
        public long ExecutionDuration { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "操作人")]
        public string CreateByName { get; set; }
    }
}
